<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<div class="grid-wrap">
    <table data-id="grid"></table>
</div>
<div data-id="nsdb" class="nsdb">
    <shiro:hasPermission name="role:data:add">
        <a data-href="${pageContext.request.contextPath}/app/api/role/toAdd" data-key="add" iconCls="fa fa-plus fa-lg" plain="true">新增</a>
    </shiro:hasPermission>
    <shiro:hasPermission name="role:data:delete">
        <a data-href="${ctx}/app/api/role/deleteForJson" data-key="del" iconCls="fa fa-trash fa-lg" plain="true">删除</a>
    </shiro:hasPermission>
    <a data-href="${ctx}/app/api/role/search" data-key="search" iconCls="fa fa-search fa-lg" plain="true">搜索</a>
    <a data-href="#" data-key="search_all" iconCls="fa fa-refresh fa-lg" plain="true">搜索全部</a>
</div>
<div data-id="role_template">
    <shiro:hasPermission name='role:data:update'>
        <a data-href='${pageContext.request.contextPath}/app/api/role/toUpdate' data-id="{{id}}" data-key="edit" iconCls="fa fa-edit fa-lg" plain="true">编辑</a>
    </shiro:hasPermission>
    <shiro:hasPermission name='role:permission:add'>
        <a data-href="${pageContext.request.contextPath}/app/api/role/toResTree" data-id="{{id}}" data-key="resource" iconCls="fa fa-key fa-lg" plain="true">编辑资源</a>
    </shiro:hasPermission>
    <shiro:hasPermission name='role:user:add'>
        <a data-href="${pageContext.request.contextPath}/app/api/role/toUserTree" data-id="{{id}}" data-key="user" iconCls="fa fa-user-plus fa-lg" plain="true">设置用户</a>
    </shiro:hasPermission>
    <a data-href="#" data-id="{{id}}" data-key="view" iconCls="fa fa-eye fa-lg" plain="true">查看</a>
</div>